package Thread;

//单例模式
class Singleton{
    //唯一实例的本体
    private static Singleton instance = new Singleton();
    public static Singleton getSingleton(){
        return instance;
    }
    private Singleton(){};//构造方法设置为私有,这样的话就不可以从外部去new

}
public class ThreadDemo13 {


}
